package com.mail.portal.modular.service.impl;

import com.mail.portal.modular.mapper.ProductCategoryMapper;
import com.mail.portal.modular.model.ProductCategory;
import com.mail.portal.modular.service.IProductCategoryService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * 创建人： Shi Heng
 * 创建时间：2018-04-11 12:24
 * QQ：374696376
 * Description：
 */
@Service
public class ProductCategoryImpl implements IProductCategoryService {

    @Resource
    private ProductCategoryMapper categoryMapper;

    @Override
    public ProductCategory selectByPrimaryKey(Object id) {
        return categoryMapper.selectByPrimaryKey(id);
    }

    @Override
    public List<ProductCategory> selectAll() {
        return categoryMapper.selectAll();
    }

    @Override
    public List<ProductCategory> list(String code) {
        return categoryMapper.list(code);
    }
}
